package com.xiaoxu.bbs.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("TBL_USER")
public class User {
	//用户ID
	private Long id;
	//用户名称
	private String userName;
	//用户密码
	private String userPass;
	//用户头像
	private String head;
	//用户性别
	private Integer gender;  //1：男   2：女
	//注册时间
	@TableField(fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private LocalDateTime updateTime;
	//状态    0:禁用   1：正常
	@TableLogic(value = "1",delval = "0")
	private Integer status;
}
